package game.core
{
	import game.define.typedef.PlayerActionType;

	public class MCTagHelper
	{
		public function MCTagHelper()
		{
			if (_instance)
				throw new Error("ResLoadHelper is single class.");
		}
		
		private static var _instance:MCTagHelper = null;
		public static function get instance():MCTagHelper
		{
			if (!_instance)
				_instance = new MCTagHelper();
			return _instance;
		}
		
		//////////////////////////////////////////////////////////////////
		
		public function getPlayerActionStartTag(actionType:int):String
		{
			switch (actionType)
			{
				case PlayerActionType.RUN_UPPER: return "u_run";
				case PlayerActionType.RUN_LOWER: return "d_run";
				case PlayerActionType.RUN_LEFT: return "l_run";
				case PlayerActionType.RUN_RIHT: return "r_run";
				case PlayerActionType.RUN_LEFT_UPPER: return "l_u_run";
				case PlayerActionType.RUN_LEFT_LOWER: return "l_d_run";
				case PlayerActionType.RUN_RIGHT_UPPER: return "r_u_run";
				case PlayerActionType.RUN_RIGHT_LOWER: return "r_d_run";
				case PlayerActionType.STAND_UPPER: return "u_stand";
				case PlayerActionType.STAND_LOWER: return "d_stand";
				case PlayerActionType.STAND_LEFT: return "l_stand";
				case PlayerActionType.STAND_RIGHT: return "d_stand";
				case PlayerActionType.STAND_LEFT_LOWER: return "l_d_stand";
				case PlayerActionType.STAND_LEFT_UPPER: return "l_u_stand";
				case PlayerActionType.STAND_RIGHT_LOWER: return "r_d_stand";
				case PlayerActionType.STAND_RIGHT_UPPER: return "r_u_stand";
					
				default:
					return ""
					break;
			}
		}
	}
}